<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/wmsproject/mespush/Wms_MesPushTaskMain.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/wmsproject/mespush/Wms_MesPushTaskMain.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "Wms_MesPushTaskMain",
        setup() {
            const table = ref({
                key: "MesPushTaskMainId",
                footer: "Foots",
                cnName: "单据任务推送信息",
                name: "mespush/Wms_MesPushTaskMain",
                newTabEdit: false,
                url: "/Wms_MesPushTaskMain/",
                sortName: "MesPushTaskMainId"
            });
            const editFormFields = ref({"OrderId":"","OrderNo":"","PickingId":"","Status":"","Message":""});
            const editFormOptions = ref([[{"title":"","field":"OrderId","type":"number"},
                               {"title":"单号","field":"OrderNo"}],
                              [{"title":"ID","field":"PickingId"},
                               {"dataKey":"WMS_MesPushTaskStatus","data":[],"title":"状态","field":"Status","type":"select"}],
                              [{"title":"推送返回的信息","field":"Message"}]]);
            const searchFormFields = ref({"OrderNo":""});
            const searchFormOptions = ref([[{"title":"单号","field":"OrderNo","type":"like"}]]);
            const columns = ref([{field:"MesPushTaskMainId",title:"ID",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"OrderId",title:"OrderId",type:"bigint",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"OrderNo",title:"单号",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"PickingId",title:"ID",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"Status",title:"状态",type:"int",bind:{ key:"WMS_MesPushTaskStatus",data:[]},width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Message",title:"推送返回的信息",type:"string",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效",type:"int",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建用户",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改用户",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
